package pers.zc.activiti.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import pers.zc.activiti.hivepool.HivePoolTest;

import java.util.List;
import java.util.Map;

/**
 * @description hive链接测试
 * @Author Lin FuYuan
 * @date 2020/1/3
 */
@RestController
@RequestMapping("/hive")
public class HiveTestController {

    @Autowired
    private HivePoolTest hivePoolTest;
    @GetMapping("test")
    @ResponseBody
    public List<Map<String, Object>> test(@RequestParam String use,@RequestParam String sql){
        List<Map<String, Object>> test = hivePoolTest.test2(use,sql);
        return test;
    }
    @GetMapping("test3")
    @ResponseBody
    public List<Map<String, Object>> test3(@RequestParam String name,@RequestParam String password){
        List<Map<String, Object>> test = hivePoolTest.test3(name,password);
        return test;
    }



}
